package com.zmytest.annotation.scope.request;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * Created on 2018/12/29.
 *
 * @author zhangmingyu
 */
public class ScopeRequest {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @PostConstruct
    public void init(){
        System.out.println("init method， after ScopeRequest constructor");
    }

    @PreDestroy
    public void preDestroy(){
        System.out.println("destroy method, ScopeRequest destroy");
    }
}
